Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds transformer interfaces to the meter service to support configuring and retrieving transformation ratios for meter measurements. This functionality allows meters with transformers to automatically scale readings by specified ratios before reporting.
- Adds three new meter transformer interfaces for getting, reporting, and setting transformation ratios
- Includes documentation and examples for the new transformer functionality
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | out | evt.meter_ext.report | float_map | | `split` | | Returns an extended electricity report. See [electricity measurements](#electricity-measurements) section for more information. | | ||
| | - | | | | | | | ||
| | in | cmd.meter_transformer.get_report | null | | | | Requests a list of transformation ratios for each measurement affected by the transformer. | | ||
| | out | evt.meter_transformer.report | float_map | | `split` | | Returns a map of transformation ratios for each measurement affected by the transformer. | |
There was a problem hiding this comment.
no point to have storage strategy split here, we can assume that report will always contain ALL units which are transformed.
| "kWh": 1, | ||
| "W": 40, | ||
| "V": 1 | ||
| }, |
There was a problem hiding this comment.
command doesn;t have split strategy, commands are not sotred
boguslaw-wojcik
left a comment
There was a problem hiding this comment.
Also add a service param like "sup_transformation_units" or similar listing units which can have a transformation ratio.
See other commands and good to go
Add interfaces:
to handle situations when AMS reports divided/multiplied values of the real measurements.